package sh.grapendaal.tsuushin.module.uno.engine.domain.achievement.impl;

import sh.grapendaal.tsuushin.module.uno.engine.domain.achievement.Achievement;
import sh.grapendaal.tsuushin.module.uno.engine.dto.GameState;

public class MessageComingInFromAboveAchievement extends Achievement {

	@Override
	public String getName() {
		return "Message Coming In From Above";
	}

	@Override
	public String getDescription() {
		return "Play the card you have just drawn from the deck.";
	}

	@Override
	public boolean isEarned(GameState gameState) {
		return gameState.getPlayed().equals(gameState.getCurrentPlayer().getDrawnCard());
	}

}
